home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / _stuff.doc < prev    next >
Text File  |  1986-09-23  |  1KB  |  39 lines

  1.  
  2.  
  3.  
  4.         NAME
  5.                 _stuff -- get equipment report (low level)
  6.  
  7.         SYNOPSIS
  8.                 r = _stuff();
  9.                 int r;
  10.  
  11.  
  12.         DESCRIPTION
  13.         Returns an integer from DOS int 11H, indicating the
  14.         available equipment and initial video mode.  This
  15.         is a low level function.  For a higher level function,
  16.         refer to stuff().
  17.              bits 15, 14 = # of printers installed
  18.              bit 12      = joystick installed if 1
  19.              bits 11-9   = # of serial ports installed
  20.              bits 7-6    = # of disk drives, 1-4 if bit 0 = 1
  21.              bits 5-4    = Initial video mode:
  22.                            01  40 x 25 b/w CGA
  23.                            10  80 x 25 b/w CGA
  24.                            11  80 x 25 Mono card
  25.              bit 0       = no disk drives if 0
  26.  
  27.  
  28.         EXAMPLE
  29.  
  30.                  int r;
  31.                  r = _stuff();
  32.                  /* test bit 12 (game port) */
  33.                  if((r & 0x1000) != 0) printf("Game port installed");
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.